//
//  OEnterApp.m
//  soccer
//
//  Created by 上官千城 on 15/9/18.
//  Copyright (c) 2015年 上官千城. All rights reserved.
//

#import "OEnterApp.h"

@implementation OEnterApp

-(void)request {
    NSDictionary* params = @{
        @"token":self.token,
        @"sign":self.sign
    };
    [self send:params];
}

-(void) run:(NSData *)data erc:(NSInteger)erc
{
    //TODO:
    if (erc != SUCC) {
        //TODO:fail logic process;
        NSString *str = [NSString stringWithFormat:@"登录失败erc= %ld",erc];
        UIAlertView *failAlert = [[UIAlertView alloc] initWithTitle:@"提示" message:str delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
        [failAlert show];
        return;
    }
    
    NSLog(@"enterApp logic process");
    NSDictionary* dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    
    NSLog(@"enterApp data=%@",dic);
    
    [self mu];
}

@end
